package com.hrzyit.base.data.protocol

import com.hrzyit.base.common.BaseConstant

/**
 * Api 接口返回分页信息对象
 * @author YangWei
 * @date 2019/4/8
 */
data class ApiPageInfo<T>(
    var offset: Int = 0,
    var limit: Int = BaseConstant.PAGE_SIZE_DEFAULT,
    var pageSize: Int = BaseConstant.PAGE_SIZE_DEFAULT,
    var pageNo: Int? = 0,
    var total: Int = 0,
    var size: Int = 0,
    var pages: Int = 0,
    var current: Int = BaseConstant.PAGE_CURRENT_DEFAULT,
    var currentPage: Int = BaseConstant.PAGE_CURRENT_DEFAULT,
    var records: MutableList<T>? = null
) {
    var orderByField: String? = null
    var order: String? = null
    var offsetCurrent: Int? = 0
    var asc: Boolean? = true
}